package com.wwt.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wwt.server.pojo.Admin;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Tao
 * @since 2021-12-05
 */
public interface AdminMapper extends BaseMapper<Admin> {

    List<Admin> getAdmin(String keywords, Integer currentId);

    @Update("update t_admin set `name`= #{name},phone= #{phone} where id=#{id}")
    boolean updateById1(Admin admin);
}
